package com.tms.admin.handler;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*-----------------------------------
 *   @Time: 2022/9/5 16:54
 *   @Description: 自定义的异常类
-----------------------------------*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "系统自定义的异常类")
public class TMSException extends RuntimeException {

    @ApiModelProperty(value = "状态码")
    public Integer code;

    @ApiModelProperty(value = "异常信息")
    private String message;
}